package com.ruoyi.classai.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.classai.domain.EwcChapter;
import com.ruoyi.classai.domain.vo.EwcChapterVo;
import com.ruoyi.classai.domain.vo.LearningAnalytics.AnalyticsChapterTeachVo;
import com.ruoyi.classai.domain.vo.TodayCourseChapterVo;
import org.apache.ibatis.annotations.Param;

/**
 * 章节信息Mapper接口
 * 
 * @author lcj
 * @date 2025-02-27
 */
public interface EwcChapterMapper extends BaseMapper<EwcChapter> {

    /**
     * 查询章节列表
     * @param courseId 课程ID
     * @param chapterName 章节名称
     * @param classId 班级ID
     * @return 章节列表
     */
    List<EwcChapterVo> getChapterList(@Param("courseId")String courseId, @Param("classId")String classId,@Param("chapterName")String chapterName);

    /**
     * 查询首页课程信息
     * @param teacherId 老师id
     * @param today 时间
     * @return 课程信息
     */
    List<TodayCourseChapterVo> getTodayCourseChapter(@Param("teacherId") String teacherId,@Param("today") String today);


    AnalyticsChapterTeachVo getChapterTeachInfo(EwcChapter ewcChapter);
}
